﻿var status = 0;
var random = java.lang.Math.floor(Math.random() * 4);
var icon0 = "#fUI/UIWindow2/AdditionalOptionTooltip/epic#";//A图标
var icon1 = "#fUI/UIWindow2.img/Quest/quest_info/summary_icon/startcondition#"; //开始条件
//-----------------------------------------------------------------------------------------//
//-----------------------------------------------------------------//
function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
        cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
        cm.dispose();
    } else if (status == 0) {

        var txt = "\r\n#d ┏━━━━━━━━━#b混战━Ｐ　Ｋ#d━━━━━━━━━┓#k\r\n\r\n";
        txt += "\t\t\t\t\t　" + icon1 + "\r\n\r\n";
        txt += "　　　　　　" + icon0 + "#r　你想享受杀人的快感吗　" + icon0 + "#k\r\n\r\n";
        txt += "　　　　　　" + icon0 + "#r　你想知道被杀的感受吗　" + icon0 + "#k\r\n\r\n";
        txt += "　　　　　　" + icon0 + "#r　单击 [ 是 ] 进入地图　" + icon0 + "#k\r\n\r\n";
        txt += "#d ┗━━━━━━━━━━━━━━━━━━━━━━━━┛#k";
        cm.sendYesNo(txt);
    } else {
        cm.warp(230050000, 0);
        cm.dispose();
    }
}